<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="shortcut icon" href="appui/img/favicon.png">

    <title><?php echo Yii::app()->params['system']; ?></title>

    <!-- Bootstrap CSS -->
    <link href="appui/css/bootstrap.min.css" rel="stylesheet">
    <!-- bootstrap theme -->
    <link href="appui/css/bootstrap-theme.css" rel="stylesheet">
    <!--external css-->
    <!-- font icon -->
    <link href="appui/css/elegant-icons-style.css" rel="stylesheet" />
    <link href="appui/css/font-awesome.css" rel="stylesheet" />
    <!-- Custom styles -->
    <link href="appui/css/style.css" rel="stylesheet">
    <link href="appui/css/style-responsive.css" rel="stylesheet" />

    <!-- HTML5 shim and Respond.js IE8 support of HTML5 -->
    <!--[if lt IE 9]>
    <script src="js/html5shiv.js"></script>
    <script src="js/respond.min.js"></script>
    <![endif]-->
</head>

<body class="login-img3-body">

<div class="container">

    <form class="login-form" action="index.php?r=site/login" method="post">
        <div class="login-wrap">
            <p class="login-img"><i class="icon_lock_alt"></i></p>
            <div class="input-group">
                <span class="input-group-addon"><i class="icon_profile"></i></span>
                <input type="text" class="form-control" value="ranko" name="username" placeholder="用户名" autofocus>
            </div>
            <div class="input-group">
                <span class="input-group-addon"><i class="icon_key_alt"></i></span>
                <input type="password" class="form-control" value="123456" name="password" placeholder="密  码">
            </div>
            <label class="checkbox">
                <input type="checkbox" name="rememberMe" value="remember-me"> 记住我
            </label>
            <button class="btn btn-primary btn-lg btn-block mgb" type="submit">登入</button>
            <?php
            if(isset($errormsg)){
                ?>
                <div class="alert alert-block alert-danger fade in">
                    <button data-dismiss="alert" class="close close-sm" type="button">
                        <i class="icon-remove"></i>
                    </button>
                    <strong>警告：</strong> <?php echo $errormsg; ?>
                </div>
                <?php
            }
            ?>
        </div>
    </form>
    <div class="text-right">

    </div>
</div>


</body>

</html>
